home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9834 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com(Pete)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: DLL problem
  5. Date: 4 Mar 1996 11:49:57 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4held5$k99@news1.usa.pipeline.com>
  8. References: <Pine.A32.3.91.960303104028.13352A-100000@ho15.eng.ua.edu>
  9. NNTP-Posting-Host: pipe5.h1.usa.pipeline.com
  10. X-PipeUser: grantp
  11. X-PipeHub: usa.pipeline.com
  12. X-PipeGCOS: (Pete)
  13. X-Newsreader: Pipeline v3.5.0
  14.  
  15. On Mar 03, 1996 16:47:47 in article <DLL problem>, 'Tong Li
  16. <tli@ho15.eng.ua.edu>' wrote: 
  17.  
  18.  
  19. >I'm still using Borland C++ 3.1 for windows. When I try to make a DLL  
  20. >using c programs which were developed several years ago, the compiler  
  21. >told me that there are many variables which are not defined. All the  
  22. >variable names are in capital letters. For example, if I have a variable  
  23. >named 'atab', the compiler told me that 'ATAB' was not defined. What  
  24. >happened? What whould I do with it? 
  25. The reason they're all upper case is because the functions are 
  26. declared with the PASCAL keyword.  (Actually PASCAL is a macro 
  27. that expands to _pascal).  But that may not have anything to 
  28. do with your problem.   
  29.  
  30. Are the missing definitions in your DLL and you get this error when 
  31. linking the import library into your main program?  If so, then you're 
  32. probably not using the _export keyword. 
  33.  
  34. If you're not using an import library, but are declaring the DLL's 
  35. symbols in a module definition file, then it's a different story. 
  36.  
  37. If you haven't solved the problem by now, post a sample of one of 
  38. the missing symbols with: 
  39.  
  40.     How it's declared in the header file. 
  41.     How it's declared in the module definition file(s), if any. 
  42.     How it's defined in the DLL source code. 
  43.  
  44. Also mention how you're linking to the DLL, implib or module 
  45. definition file only. 
  46.  
  47. Then, post the question to comp.os.ms-windows.programmer. 
  48.  
  49. -- 
  50. Pete Grant 
  51. Kalevi, Inc. 
  52. Software Engineering & development
  53.